package com.google.code.mamule.user;

import com.google.common.base.Objects;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created with IntelliJ IDEA. User: borck_000 ; Date: 1/5/14 ; Time: 11:43 PM
 */
@XmlRootElement
public class UserRegistration {

  private String username;
  private String password;

  public UserRegistration() { /* JAXB */
  }

  public UserRegistration(final String username, final String password) {
    this.username = username;
    this.password = password;
  }

  @Override
  public String toString() {
    return Objects.toStringHelper(this)
        .add("username", username)
        .add("password", password)
        .toString();
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(final String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(final String password) {
    this.password = password;
  }
}
